<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>顺丰打印单</title>
	<link rel="icon" href="">
	<link rel="stylesheet" href="__PUBLIC__/sf/css/common.css">
	<link rel="stylesheet" href="__PUBLIC__/sf/css/style.css">
	<script type="text/javascript" src="__PUBLIC__/Admin/lib/jquery/1.9.1/jquery.min.js"></script>
<style rel="stylesheet" type="text/css" media="all" />
    @media print {
    .noprint { display: none; }
    .break {page-break-after:always;}
    }
</style>
</head>
<body>
<volist name="printorder_list" id="data">
	<if condition="$i neq 1">
		<div class="break" style="width:100%;height:0px;clear:both;"></div>
	</if>
	<div class="page">
		<input type="hidden" class="order_no" value="{$data['order_no']}" name="order_no" />
		<div class="m1 b">
		</div>
		<div class="m2 b">
			<div class="left">
			<img width="235.3px" height="60px" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text={$data['mailNo']}" alt="barcode"/>
				<p>单号<span>{$data['mailNo']}</span></p>
			</div>
			<div class="right">
				<div class="r1 b" >
					<p style="font-size:14px">云仓专配次日</p>
				</div>
				<div class="r2">
					<p class="p1"></p>
					<p class="p2">月结卡号：{$data["custid"]}</p>
                    <p class="p2">付款方式:{$data["pay_methods"]}</p>
				</div>
			</div>
		</div>
		<div class="m3 b">
			<div class="left">
				<p>目的地</p>
			</div>
			<div class="right">
				<p align="center">{$data["destcode"]}</p>
			</div>
		</div>
		<div class="m4 b">
			<div class="left">
				<p>收件人</p>
			</div>
			<div class="right" >
				<p>
                 {$data["receiveMan"]}
                 </p>
				<p>电话:{$data["receiveManPhone"]}</p>
				<p>{$data["receiveProvince"]}{$data["receiveCity"]}{$data["receiveCounty"]}{$data["receiveManAddress"]}</p>
			</div>
		</div>
		<div class="m5 b">
			<div class="left">
				<p>寄件人</p>
			</div>
			<div class="right-1" style="font-size:15px">
				<p>{$data["sendMan"]}</p>
				<p>电话:{$data["sendManPhone"]}</p>
				<p>{$data["sendProvince"]}{$data["sendCity"]}{$data["sendCounty"]}{$data["sendManAddress"]}</p>
			</div>
			<div class="right-2">
				<p class="p1" style="font-size:13px">定时派送</p>
				<p class="p2">自寄 </p>
			</div>
		</div>
		<div class="m6 b cl">
			<div class="left">

				<div class="l2">
					<div class="l2-a">
						<p>托寄物</p>
					</div>
					<div class="l2-b">
					<volist name="data.goods_info" id="vo">
                        <p style="font-size: 1px;">{$vo.goods_name|msubstr=###,0,20}</p>
                        <p style="font-size: 1px;">数量:{$vo.goods_nums}</p>
					</volist>
                     </div>
					<div class="l2-c">
						<ul>
							<li>收件员：</li>
							<li>收件日期：{$finishTime}</li>
							<li>派件员：</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="right">
				<p>签名：</p>
				<p class="p2">月<span>日</span></p>
			</div>
		</div>
		<div class="item b">
			<div class="m7 b cl">
				<div class="left">
					<img class="img1" src="__PUBLIC__/sf/img/logo.jpg">
					<img src="__PUBLIC__/sf/img/tel.png">
				</div>
				<div class="right">
				<img style="margin-top:10px" width="162.9px" height="48.2px;" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text={$data['mailNo']}" alt="barcode"/>
				</div>
			</div>
			<div class="m5 b">
				<div class="left">
					<p>寄件人</p>
				</div>
				<div class="right" >
					<p>{$data["sendMan"]}    {$data["sendManPhone"]}</p>
					<p>{$data["sendProvince"]}{$data["sendCity"]}{$data["sendCounty"]}{$data["sendManAddress"]}</p>
				</div>
			</div>
			<div class="m5 b">
				<div class="left">
					<p>收件人</p>
				</div>
				<div class="right" style="width:95%">
                    <p>{$data["receiveMan"]}&nbsp{$data["receiveManPhone"]}</p>
                    <p>{$data["receiveProvince"]}{$data["receiveCity"]}{$data["receiveCounty"]}{$data["receiveManAddress"]}</p>
				</div>
			</div>
            <div class="m10" style="height:50px">
                <p class="s2"  align="center">农宇--G20食材专供工厂</p>
            </div>
		</div>
		

	</div>
</volist>
       <!-- <input type="button" class="noprint" name="print" value="Print" > -->

<script>
        $(function(){
            $(".noprint").click(function(){
				var order_no=$('input[name=order_no]').val();
				$.ajax({
					url : "{:U('printSFems')}",
					type: "POST",
					data:{order_no:order_no},
					success:function(result){
						window.print();
					}
				});
			
            })
        })
</script>
